﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AppearActivexPage.aspx.cs"
    Inherits="Wsbs_AppearActivexPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>显示流程图</title>

    <script type="text/javascript">
     var oleHaveOpened=false;
    
    //关闭客户端控件
    function CloseActivex()
    {
        oleHaveOpened=false;
        var oleTemp = document.getElementById("AntuOle");
        oleTemp.close();
    }
    </script>

    <script for="AntuOle" event="OnAfterInit()" type="text/javascript">
    </script>

    <script for="AntuOle" event="OnResourceChange()" type="text/javascript">
    </script>

    <script for="AntuOle" event="StepClick(StepName)" type="text/javascript">
			alert(StepName);
    </script>

</head>
<body onunload="CloseActivex();" onload="ActivexInit();">
    <form id="form1" runat="server">
        <div>
            <object id="AntuOle" classid="clsid:41E4BABE-1BF6-42EA-A32B-33CA8E9B4840" width="100%"
                height="100%" border="0">
            </object>

            <script type="text/javascript">
            function ActivexInit() 
            {
                var strParams = '<%=Request["param"]%>';
                var arrParams = strParams.split('|');
                if(!oleHaveOpened)
                {
                    var url = window.location.protocol + "//" + window.location.host + window.location.port +arrParams[0];
                    var oleTemp = document.getElementById("AntuOle");  
                    oleTemp.init4(url,arrParams[1],arrParams[2]) ;
                    oleHaveOpened = true;
                }
            }
            </script>

        </div>
    </form>
</body>
</html>
